<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateElGiftCouponReceiveTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('el_gift_coupon_receive', function (Blueprint $table) {

            $table->increments('id');//

            $table->string('type')->nullable();

            $table->integer('balance_order_id')->nullable();

            $table->integer('user_id')->nullable();

            $table->integer('discount_id')->nullable();

            $table->integer('gift_coupon_id')->nullable();

            $table->nullableTimestamps();

            $table->softDeletes();

            $table->engine = 'InnoDB';

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('el_gift_coupon_receive');
    }
}
